package com.boguan.device.mapper;

import com.boguan.device.domain.DeviceParam;
import com.boguan.device.domain.DeviceTypeParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备类型组态表 数据层
 *
 * @author chen
 */
public interface DeviceTypeParamMapper {
    int deleteByPrimaryKey(Long paramId);

    int insert(DeviceTypeParam record);

    int insertSelective(DeviceTypeParam record);

    DeviceTypeParam selectByPrimaryKey(Long paramId);

    int updateByPrimaryKeySelective(DeviceTypeParam record);

    int updateByPrimaryKey(DeviceTypeParam record);

    int deleteByTypeId(Long typeId);

    List<DeviceTypeParam> selectByDeviceTypeParam(DeviceTypeParam deviceTypeParam);

    List<DeviceTypeParam> selectDeviceTypeByTypeId(Long typeId);

    DeviceTypeParam checkIdentifier(@Param("identifier") String identifier, @Param("typeId") Long typeId);

}